package org.jash.shop2201

import android.app.Application
import com.alibaba.android.arouter.launcher.ARouter
import com.alipay.sdk.app.EnvUtils
import com.alipay.sdk.app.EnvUtils.EnvEnum
import dagger.hilt.android.HiltAndroidApp
import org.jash.shop2201.utils.StoreUtils

@HiltAndroidApp
class App:Application() {
    override fun onCreate() {
        super.onCreate()
        if (BuildConfig.DEBUG) {
            ARouter.openLog()
            ARouter.openDebug()
        }
        ARouter.init(this)
        StoreUtils.initialize(this)
        EnvUtils.setEnv(EnvEnum.SANDBOX)
    }
}